
import 'vant/lib/index.css';
import './assets/main.css'


import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import Vant, { showToast } from 'vant';


const app = createApp(App)
const pinia = createPinia()

//  混入   少用  因为页面上他会突然出现



app.use(pinia)
app.use(createPinia())
app.use(router)
app.use(Vant);

//  混入
app.mixin({
    data() {
        return {
            baseColor: "#00bd7e"
        }
    },
    methods: {
        navTo(url) {
            router.push(url)
        },
        back() {
            router.back()
        }
    }
})
app.mount('#app')



